function scheduleHtmlParser(html) {
    const $ = cheerio.load(html, {decodeEntities: false}); // 避免中文乱码
    let course = []
    //按行来遍历 获取第几讲
    $('tbody > tr').each(function (index){
    	let section = index + 1;
    	//按列遍历 获取第几天
    	$(this).find('td').each(function (index){
    		let day = index
    		if(section%2==1){
    			day = day-1;
    		}else{
    			day = day;
    		}
    		// 遍历所有课程单元格div
			$(this).find('div').each(function (index) {
				// 获取课程信息
				var raw_weeks = $(this).find("span.week").text()
				var raw_name = $(this).find("span.course").text()
				var teacher = $(this).find("span.teacher").text()
				var position = $(this).find("span.place").text()
				console.log(raw_weeks,raw_name,teacher,position)
				console.log("讲：",section,"天：",day)
				// 转换课程信息格式
				var weeks = parseWeeks(raw_weeks)
                
			    // 记录新的课程信息
				var obj = {
					name: raw_name,
					position: position,
					teacher: teacher,
					weeks: weeks,
					day: day.toString(),
					sections: []
				}
				obj.sections.push({
						section: section.toString()
					});
				course.push(obj)
			})
    	})

    })
    let ret = {courseInfos: course, sectionTimes :[]}
    ret.sectionTimes = [
        {
            "section": 1,
            "startTime": "08:00",
            "endTime": "09:45"
        },
        {
            "section": 2,
            "startTime": "10:00",
            "endTime": "11:45"
        },
        {
            "section": 3,
            "startTime": "14:00",
            "endTime": "15:40"
        },
        {
            "section": 4,
            "startTime": "16:00",
            "endTime": "17:40"
        },
        {
            "section": 5,
            "startTime": "19:00",
            "endTime": "20:40"
        },
        {
            "section": 6,
            "startTime": "21:00",
            "endTime": "21:40"
        }
    ]

    return ret;
}
function parseWeeks(raw_weeks){
	raw_weeks = raw_weeks.split("(")[0]

	weeks = [];
	for (var week = Number(raw_weeks.split("-")[0]); week <= Number(raw_weeks.split("-")[1]); week++) {
		weeks.push(week);
	}
	return weeks

}